import request from '@/utils/request';


export function countBiyeYearDept() {
  return request({
    url: "/comprehensive/goodapply/countBiyeYearDept",
    method: "get"
  });
}


export function countOwnUnDo() {
  return request({
    url: "/comprehensive/goodapply/countOwnUnDo",
    method: "get"
  });
}


export function countJwcUnDo() {
  return request({
    url: "/comprehensive/goodapply/countJwcUnDo",
    method: "get"
  });
}



export function countFdyUnDo() {
  return request({
    url: "/comprehensive/goodapply/countFdyUnDo",
    method: "get"
  });
}


export function countXwUnDo() {
  return request({
    url: "/comprehensive/goodapply/countXwUnDo",
    method: "get"
  });
}


export function reApply(data) {
  return request({
    method: 'POST',
    url: "/comprehensive/goodapply/reApply",
    data
  });
}

export function getOwnRankByCode(code) {
  return request({
    method: "GET",
    url: `/comprehensive/goodapply/getOwnRankByCode/${code}`
  });
}

export function cancelOwnApply(data) {
  return request({
    method: "post",
    url: "/comprehensive/goodapply/cancelOwnApply",
    data
  });
}

export function getOwnIamCountByCode(code) {
  return request({
    method: "GET",
    url: "/comprehensive/goodapply/getOwnIamCountByCode/" + code
  });
}


export function getOwnPassCountByCode(code) {
  return request({
    method: "get",
    url: "/comprehensive/goodapply/getOwnPassCountByCode/" + code
  });
}


export function countOwnIam() {
  return request({
    method: "get",
    url: "/comprehensive/goodapply/countOwnIam"
  });
}

export function countOwnPass() {
  return request({
    method: 'GET',
    url: "/comprehensive/goodapply/countOwnPass"
  });
}

export function listOwnYearCourseScore(params = {
  pageNum: 1,
  pageSize: 10
}) {
  return request({
    url: "/comprehensive/goodapply/listOwnYearCourseScore",
    method: "GET",
    params
  });
}

export function listOwnScoreClassRank() {
  return request({
    url: "/comprehensive/goodapply/listOwnScoreRank",
    method: "GET"
  });
}


export function listOwnXyjxjApply(params) {
  return request({
    url: "/comprehensive/goodapply/listOwnXyjxjApply",
    method: "get",
    params
  });
}


export function applyXyjxj(data) {
  return request({
    url: "/comprehensive/goodapply/applyXyjxj",
    method: "POST",
    data
  });
}


export function listTermByYear(id) {
  return request({
    method: 'GET',
    url: "/comprehensive/goodapply/listTermByYear/" + id
  });
}

export function listXyjxjCanType() {
  return request({
    url: "/comprehensive/goodapply/listXyjxjCanType",
    method: "get"
  });
}

// 查询评优申请列表
export function listGoodapply(query) {
  return request({
    url: '/comprehensive/goodapply/list',
    method: 'get',
    params: query
  })
}

// 查询评优申请详细
export function getGoodapply(id) {
  return request({
    url: '/comprehensive/goodapply/' + id,
    method: 'get'
  })
}

// 新增评优申请
export function addGoodapply(data) {
  return request({
    url: '/comprehensive/goodapply/add',
    method: 'post',
    data: data
  })
}

// 修改评优申请
export function updateGoodapply(data) {
  return request({
    url: '/comprehensive/goodapply/update',
    method: 'post',
    data: data
  })
}

// 删除评优申请
export function delGoodapply(id) {
  return request({
    url: '/comprehensive/goodapply/del',
    method: 'post',
    data: id
  })
}


